package org.gui;

import java.awt.Dimension;
import java.util.logging.Logger;

import javax.swing.JPanel;
import javax.swing.JTextArea;

public class CenterPanel extends JPanel{

	public static Logger logger = Logger.getLogger("Logger");
	MainFrame frame;
	JTextArea textArea;
	
	private static final long serialVersionUID = 1L;

	public CenterPanel(MainFrame frame) {
		this.frame = frame;
		textArea = new JTextArea();
		
		//textArea.append("Welcome");
		
		setPreferredSize(new Dimension(400, 300));
		/*for(Handler handler: logger.getHandlers()){
		    if(handler instanceof TextAreaHandler){
		        TextAreaHandler textAreaHandler = (TextAreaHandler) handler;
		        add(textAreaHandler.getTextArea());
		    }
		}*/
	}
	
	public JTextArea getTextArea(){
		return textArea;
	}
	
}
